package com.yeren.czbk.oneToMany.entity;

/**
 * 员工
 */
public class Employee {
	private Integer id;
	private String name;
	private Department department;// 关联员工对象

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}
	
	public String toString(){
		return "[Employee:id="+id+",name="+name+"]";
	}
}
